package asapIs134CK.womi.client.games.logoGame.froggitTheFrog.cellsImpl;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.user.client.ui.Image;

import asapIs134CK.womi.client.games.logoGame.froggitTheFrog.Cell;
import asapIs134CK.womi.client.games.logoGame.froggitTheFrog.FroggitMyFrog;
import asapIs134CK.womi.client.games.logoGame.froggitTheFrog.FroggitReaction;
import asapIs134CK.womi.client.imgs.logoGame.LogoGameImageBundle;

public class FroggitSand extends Cell {
	private static ImageResource imgCreator = 
		((LogoGameImageBundle) GWT.create(LogoGameImageBundle.class)).cell_sand_small();
	
	@Override
	public FroggitReaction handleSuperpositionWith(FroggitMyFrog frog) {
		//acceptable State
		return FroggitReaction.Ok;
	}

	@Override
	public String toString() {
		return "Cell:Sand";
	}

	@Override
	public Image getImage() {
		return new Image(imgCreator);
	}

	@Override
	public Cell clone() {
		return new FroggitSand();
	}

}
